<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width">
  <title>Title</title>
  <style>
    .note {
      background: #f3f3f3;
      border-radius: 16px;
      padding: 0 16px 16px 16px;
      margin-top: 30px;
      border-top: 2px solid #ccc;
      box-shadow: 0 0 16px -12px #333 inset;
    }
    .note h2 {
      background: #ccc;
      padding: 8px 12px;
      font-weight: normal;
    }
    .note h4 {
      margin: 0;
    }
    .note p {
      line-height: 24px;
      margin: 0;
      color: #555;
    }
    .note-item {
      margin-top: 12px;
    }
  </style>
</head>
<body>
<header></header>
<div id="app">
  <button @click.middle="handleClick">小按钮</button>
  <div class="note">
    <h2>课程笔记</h2>
    <div class="note-item">
      <h4>1. 鼠标修饰符有哪些？</h4>
      <p>.left：左击, .right：右击, .middle：中击</p>
    </div>
    <div class="note-item">
      <h4>2. 左击、右击、中击的区别是什么？</h4>
      <p>左击跟中击都是按下并弹起时才触发，右击是按下时立即触发</p>
    </div>
  </div>
</div>
<footer></footer>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
  (function () {
    new Vue({
      el: '#app',
      methods: {
        handleClick () {
          console.log('click')
        }
      }
    })
  })()
</script>
</body>
</html>
